import redis
import time
import threading

r=redis.Redis(host='192.168.218.130',port=6379,password='ls961124',db='0')

li=list(range(20))

r.rpush('task',*li)
t=threading.Timer(10,r.rpush,args=('task',*li))
t.start()
# while True:

print(r.brpop('task'))



